<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统登陆</title>
<link href="${pageContext.request.contextPath }/css/mystyle1.css" rel="stylesheet" type="text/css">
 <script type="text/javascript" src="${pageContext.request.contextPath }/js/AjaxRequest.js"></script>
<script type="text/javascript"> 
function sss(){
	var myselect=document.getElementById("sel");
	//var index=myselect.selectedIndex;
	var id=myselect.value;
	if(id==""){
		alert("请选择培训期号!");
		return false;
	}
	var loader=new net.AjaxRequest("${pageContext.request.contextPath }/user/ajaxtrainee.action?noticeid="+id+"&nocache="+new Date().getTime(), deal_sss, onerror, "GET");
 
  
}
 
 function onerror(){
	 alert("您的操作有误！");
 }

 function deal_sss(){
	 document.getElementById("table").innerHTML=this.req.responseText;
 }

</script>
</head>
<body>
<!--<form action="${pageContext.request.contextPath }/login.action" method="post">
用户账号：<input type="text" name="username" /><br/>
用户密码 ：<input type="password" name="password" /><br/>
<input type="submit" value="登陆"/>
</form>-->

<div class="row" > 
  <div class="img">
   <img src="${user.img}" width="700" height="700" alt=""/>
   <div class="desc">头像</div>
  </div>
  <div class="info">  
    <p>昵称: ${user.name }</p>
    <p>性别: ${user.sex}</p>
    <p> 地址: ${user.address }</p>
  </div>
</div>
<div class="clearfix"></div>
 <hr>
<div class="row1">
  <p>学习总时长:${user.playtime }</p>
  <hr>
   
  <p>成绩查询:</p>
  <select id="sel">
    <option  value="">培训期号</option>
    <c:forEach items="${noticeid }" var="id">
    <option value="${id }">${id }</option>
    
    </c:forEach>
  </select>
   
  <button onclick="sss();">查询</button>
  <br><br> 
   
  <div id="table">此处显示成绩内容</div>
</div>
</body>
</html>



 
</body>
</html>